import logging

from django.apps import AppConfig

from .netcli import NetCli
from .netcli import PushCliAdapter
from .props import PUSH_SERV_HOST
from .props import PUSH_SERV_PORT

logging.getLogger().setLevel(logging.INFO)


class FivechessConfig(AppConfig):
    name = 'fivechess'

    def ready(self):
        cli = NetCli.get_netcli(host=PUSH_SERV_HOST, port=PUSH_SERV_PORT,
                                adapter=PushCliAdapter.get_instance())
        logging.info('%s start completed', FivechessConfig.name)
